<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加用户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width: 75%; margin: 0px auto;">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">试题名称</label>
        <div class="layui-input-block">
            <input type="text" name="testName" class="testName layui-input" placeholder="请输入试题名称" lay-verify="required" autocomplete="off">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">A:</label>
        <div class="layui-input-block">
            <input type="text" name="optionA"  class="optionA layui-input" placeholder="请输入选项内容" lay-verify="required" autocomplete="off">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">B:</label>
        <div class="layui-input-block">
            <input type="text" name="optionB" class="optionB layui-input" placeholder="请输入选项内容" lay-verify="required" autocomplete="off">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">C:</label>
        <div class="layui-input-block">
            <input type="text" name="optionC"  class="optionC layui-input" placeholder="请输入选项内容" lay-verify="required" autocomplete="off">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">D:</label>
        <div class="layui-input-block">
            <input type="text" name="optionD" class="optionD layui-input" placeholder="请输入选项内容" lay-verify="required" autocomplete="off">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">答案:</label>
        <div class="layui-input-block">
            <input type="radio" name="answer" class="answer" value='A' lay-filter="test" title="A">
            <input type="radio" name="answer" class="answer" value='B' lay-filter="test" title="B">
            <input type="radio" name="answer" class="answer" value='C' lay-filter="test" title="C">
            <input type="radio" name="answer" class="answer" value='D' lay-filter="test" title="D">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">试题分值:</label>
            <div class="layui-input-block">
                <select name="scoreTest" lay-verify="required" lay-search="" id="">
                        <option value="5">5</option>
                        <option value="10">10</option>
                        <option value="15">15</option>
                        <option value="20">20</option>
                </select>
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addTest">立即添加</button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script src="../../../js/ip.js"></script>
<script src="../../../js/jquery-1.11.1.js"></script>
<script src="../../../js/jquery.cookie.js"></script>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="test-add.js"></script>
</body>
</html>